<table cellpadding="0" cellspacing="0" width="100%" align="left" class="table-list">
    <col width="40%">
    <col width="10%">
    <col width="40%">
    <col width="10%">
    <?php foreach ($aryCustomer as $key => $customer) { $i = 0;?>
    <tr class="<?php echo ($i/2 == 0) ? 'alt' : '';?>">
            <td align="center">
               <?php echo $customer['customer_full_name'];?>
            </td>
            <td>
                <?php echo $customer['customer_mobile_phone'];?>
            </td>
            <td colspan="5">
                <?php echo $customer['customer_address'];?>
            </td>
        </tr>
                <?php if(is_array($customer['product'])){?>
                    <?php foreach ($customer['product'] as $key => $product) {?>
                    <tr>
                        <td style="border-top: solid 1px #272727">
                            <?php echo $product['product_title'];?>
                        </td>
                        <td style="border: solid 1px #272727;">
                            <div>
                                <?php echo ($product['product_price_vnd'] != 0) ? number_format($product['product_price_vnd'], 0, ',', '.').'&nbsp;VNĐ' : 'Call'; ?>
                            </div>
                            <div align="center" style="padding-top: 4px;color: #008500;">(
                                <?php if( $product['mct_customer_status'] == 0){
                                    echo 'Yêu cầu mới';
                                }else if($product['mct_customer_status'] == 1){
                                    echo 'Đang xử lý';
                                }else{
                                    echo 'Đã xử lý';
                                }
                                ?>)
                            </div>
                            <div align="center">
                               Ngày xử lý cuối
                            </div>
                            <div align="center">
                                <?php echo date("d/m/Y", strtotime($product['mct_customer_date_process']));?>
                            </div>
                            
                        </td>
                        <td style="border-top: solid 1px #272727" colspan="3">
                            <?php if(is_array($product['link'])){?>
                                <?php foreach ($product['link'] as $key => $value) {?>
                                <div style="border-top: solid 1px #272727;padding: 4px;">
                                    <a style="color: #FFFFFF;text-decoration: none;" href="<?php echo $value['mct_customer_link_link'];?>"><?php echo $value['mct_customer_link_link'];?></a>
                                    <p style="text-align: right;">
                                        Ngày gửi: <?php echo date("d/m/Y", strtotime($value['mct_customer_link_send_date']));?>
                                    </p>
                                </div>
                                <?php } ?>
                            <?php }?>
                        </td>
                        <td>
                            
                        </td>
                        <td style="border: solid 1px #272727">
                            <img src="/public/images/form/icon-edit.gif" class="cpointer" onclick="AdminController.viewDetailCustomerLink('<?php echo $customer['customer_id'];?>', '<?php echo $product['product_id'];?>');" title="Xem chi tiết">
                        </td>
                    </tr>
                    <?php } ?>
                <?php }?>
    <?php $i++; } ?>
</table>